package com.d3works.apps.production.service.configurator;

import com.d3works.apps.production.db.ConfiguratorProdProcessLine;
import com.d3works.apps.production.db.ProdProcessLine;
import com.d3works.apps.production.db.WorkCenterGroup;
import com.d3works.exception.D3worksException;
import com.d3works.rpc.JsonContext;

public interface ConfiguratorProdProcessLineService {

  /**
   * Generate a prod process line from a configurator prod process line and a JsonContext holding
   * the custom values
   *
   * @param confProdProcessLine
   * @param isConsProOnOperation
   * @param attributes
   * @return
   */
  ProdProcessLine generateProdProcessLine(
      ConfiguratorProdProcessLine confProdProcessLine,
      boolean isConsProOnOperation,
      JsonContext attributes)
      throws D3worksException;

  public void setWorkCenterGroup(
      ConfiguratorProdProcessLine confProdProcessLine, WorkCenterGroup workCenterGroup)
      throws D3worksException;
}
